<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/js/bootstrap.min.js" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
    <title>下单</title>
</head>
<body>
<style type="text/css">
    input{
        max-width: 400px;
    }
    div{
        margin-left: 400px;

    }

</style>
<div style="width: 500px;height: 500px;border-radius: 5px;background-color: #f4805b">
    <!--支付所需的参数,前面我们已经封装成了实体类-->
    <form action="${pageContext.request.contextPath}/payinfo" method="post" style="margin: 80px;padding-top: 80px">
        <input  type="hidden" name="product_code" value="FAST_INSTANT_TRADE_PAY"><br/><br/>
        订&nbsp;&nbsp;单&nbsp;&nbsp;号：<input class="form-control" value="${orderForm.order_code}"  type="text" name="out_trade_no" required><br/><br/>
        订单名称：&nbsp;<input class="form-control" value="${orderForm.subject}" type="text" name="subject" required><br/><br/>
        付款金额：&nbsp;<input class="form-control" value="${orderForm.total_amount}" type="text" name="total_amount" required><br/><br/>
        描&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;述：&nbsp;<input class="form-control" value="${orderForm.body}" type="text" name="body"><br/><br/>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input  class="btn btn-primary" type="submit" value="下单">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input  class="btn btn-primary" type="reset" value="重置">
    </form>
</div>
</body>
</html>

